package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberAuthTypeConfigDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 实名验证配置持久化层
 * @author lqa
 * @version 2.0.0
 * @date 2022/1/13
 */
public interface MemberAuthTypeConfigFeignRepository extends JpaRepository<MemberAuthTypeConfigDO, Long>, JpaSpecificationExecutor<MemberAuthTypeConfigDO> {
    MemberAuthTypeConfigDO findByStatus(Boolean code);

    MemberAuthTypeConfigDO findTopByAuthTypeOrderByIdDesc(Integer authType);

    List<MemberAuthTypeConfigDO> findByIdNot(Long id);
}
